﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Jzy.BLL.SiteAdmin;
using Jzy.Model.SiteAdmin;
using System.Web.UI.HtmlControls;
using Jzy.Core.Common.Basic;

namespace Jzy.Web.WebSite
{
    public partial class index : System.Web.UI.Page
    {
        protected string strAppPath;
        protected void Page_Load(object sender, EventArgs e)
        {
            CmsProfileBO profile = new CmsProfileBO();
            CmsProfileInfo info = profile.GetFirstInfo();
            if (info != null)
            {
                this.Title = info.Title;
                HtmlMeta meta = new HtmlMeta();
                meta.Name = "keywords";
                meta.Content = info.Keywords;

                this.Header.Controls.Add(meta);

                meta = new HtmlMeta();
                meta.Name = "description";
                meta.Content = info.Descriptions;
                this.Header.Controls.Add(meta);


            }


            strAppPath = GlobalVar.WebAppPath;
            js.Text = "<script type='text/javascript' src='" + GlobalVar.WebAppPath + "website/js/swfobject_modified.js' ></script>";
            js.Text += "<script type='text/javascript' src='" + GlobalVar.WebAppPath + "Common/Js/common.js' ></script>";

            
        }
    }
}
